<?php

class Application_Model_User extends Zend_Db_Table_Abstract
{
    protected $_name = 'user';
    
    public function Get_User_by_ID($user_id){
        try {
            $select  = $this->select()
                            ->where('user_id = ?', $user_id);
            return $this->fetchRow($select);
        }
        catch (Zend_Exception $ex){
            echo $ex;
        }
    }
    
    public function Get_All_User(){
        try{
            $select = $this->select();
            return $select;
        }
        catch (Zend_Exception $ex){
            echo $ex;
        }
    }

}

